<%@ tag import="cc.hwtech.jwxt.constant.Column" %>
<%@ tag import="cc.hwtech.jwxt.base.utils.CommonValidate" %>
<%@ tag pageEncoding="utf-8" trimDirectiveWhitespaces="true" body-content="empty" %>
<%@ attribute name="value" type="java.lang.String" required="true"%>
<%@ attribute name="type" type="java.lang.String" required="true" description="defualt to both" %>
<%
    if (CommonValidate.isEmpty(value)) {
        out.print("--");
    } else {
        Column column = Column.valueOf(type);
        String typeValue = column.getLabelByCode(Integer.valueOf(value));
        if (CommonValidate.isEmpty(typeValue)) {
            out.print("--");
        } else {
            out.print(typeValue);
        }
    }
%>